Skip to content

Conversation

HerrCai0907
Copy link
Contributor

@HerrCai0907 HerrCai0907 commented Sep 20, 2025

add_new_check.py deps on heuristic method (find special words) to detect whether check support auto fix.
This PR wants to add comment in llvm-use-ranges to make it work.

@llvmbot
Copy link
Member

llvmbot commented Sep 20, 2025

@llvm/pr-subscribers-clang-tools-extra

@llvm/pr-subscribers-clang-tidy

Author: Congcong Cai (HerrCai0907)

Changes

Full diff: https://github.com/llvm/llvm-project/pull/159927.diff

1 Files Affected:

  • (modified) clang-tools-extra/clang-tidy/llvm/UseRangesCheck.cpp (+2)
diff --git a/clang-tools-extra/clang-tidy/llvm/UseRangesCheck.cpp b/clang-tools-extra/clang-tidy/llvm/UseRangesCheck.cpp
index 49dc92456af39..2c7a644b7a793 100644
--- a/clang-tools-extra/clang-tidy/llvm/UseRangesCheck.cpp
+++ b/clang-tools-extra/clang-tidy/llvm/UseRangesCheck.cpp
@@ -8,6 +8,8 @@
 
 #include "UseRangesCheck.h"
 
+// FixItHint - Let the docs script know that this class does provide fixits
+
 namespace clang::tidy::llvm_check {
 
 namespace {

Copy link
Contributor

@vbvictor vbvictor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but does it matter if it already says "Yes" in "Offers fixes" in https://clang.llvm.org/extra/clang-tidy/checks/list.html?

@HerrCai0907
Copy link
Contributor Author

LGTM, but does it matter if it already says "Yes" in "Offers fixes" in https://clang.llvm.org/extra/clang-tidy/checks/list.html?

If we re-run python script, the "yes" will disappear which is quiet annoying.

@HerrCai0907 HerrCai0907 merged commit d263150 into llvm:main Sep 21, 2025
10 checks passed
@HerrCai0907 HerrCai0907 deleted the fix/add-new-checks branch September 21, 2025 01:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants